all : test LPShid.o

# How we create LPShid.o
LPShid.o : LPShid.c LPShid.h
	gcc -o LPShid.o -c LPShid.c

# The final output is one or more linked object files
test : test.c LPShid.o LPShid.h
	gcc -o test -lm -lpthread -lusbl test.c LPShid.o

clean :
	rm -f LPShid.o
	rm -f test
